package jun.learn.struts2.basic;


import com.opensymphony.xwork2.Action;

public class LoginAction implements Action {
	
	private String username;
	private String password;
	
	public String execute() throws Exception {
		
		if(username.equals("xujun")){
			return SUCCESS;
		}
		return ERROR;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
}
